package com.gd.common.util;

import java.util.Date;

public class DateUtil {
	public static String getStr(Date date){
		int year=date.getYear()+1900;
		int month=date.getMonth()+1;
		int day=date.getDate();
		
		return year+"-"+month+"-"+day;
	}
	
	public static void main(String[] args){
		System.out.println(DateUtil.getStr(new Date()));
	}

}
